package Test;

/**
 * Author  zxy
 * Date  2023/1/4 下午 3:02
 */
public class Student implements Person, Named{

    public String getName() {
        return Person.super.getName();
    }

    public static void main(String[] args) {
        Student student = new Student();
        System.out.println(student.getName());
    }

}

interface Person {
    default String getName() {
        return "1";
    }
}

interface Named {
    default String getName() {
        return "zxy";
    }
}
